Skip to content

refactor(core): collection expressions for Analysis DTOs and core VMs#707

Merged
cct08311github merged 1 commit intodotnet10from
refactor/collection-expressions-700
Mar 20, 2026
Merged

refactor(core): collection expressions for Analysis DTOs and core VMs#707
cct08311github merged 1 commit intodotnet10from
refactor/collection-expressions-700

Conversation

@cct08311github
Copy link
Copy Markdown
Owner

Summary

Replace new List<T>() property initializers with C# 12 collection expressions [].

Files changed

  • AnalysisQueryRequest.cs — Dimensions, Measures, Filters (3 properties)
  • AnalysisQueryResponse.cs — Columns, Rows (2 properties)
  • ServerSideGroupByStrategy.cs — empty list returns (2 locations)
  • BasePagedListVM.cs — Ids (1 property)

Not changed (intentional)

  • Dictionary initializers — [] doesn't support dictionaries
  • Local variables with var — collection expressions need explicit target type
  • TagHelper/UI code — readability concern per plan

Test plan

  • CI passes (pure syntax sugar, zero behavior change)

Closes #700

🤖 Generated with Claude Code

…dListVM

Replace `new List<T>()` property initializers with `[]` collection expressions:
- AnalysisQueryRequest: Dimensions, Measures, Filters
- AnalysisQueryResponse: Columns, Rows
- ServerSideGroupByStrategy: empty list returns
- BasePagedListVM: Ids

First batch — remaining files deferred to follow-up.

Closes #700 (partial)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cct08311github cct08311github merged commit 611bf07 into dotnet10 Mar 20, 2026
4 checks passed
@cct08311github cct08311github deleted the refactor/collection-expressions-700 branch March 20, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(core): [P0-03] Collection expressions modernization

1 participant